load("//tools/build_defs/oss:soloader_defs.bzl", "fb_core_android_library", "fb_java_library")

fb_core_android_library(
    name = "soloader",
    srcs = glob(
        ["*.java"],
        exclude = ["MergedSoMapping.java"],
    ),
    proguard_config = "soloader.pro",
    provided_deps = [
        "//deps:jsr_305",
    ],
    required_for_source_only_abi = True,
    visibility = [
        "PUBLIC",
    ],
    deps = [
        ":mapping-stub",
        # Be very careful adding new dependencies here, because this code
        # has to run very early in the app startup process.
        # Definitely do *not* depend on guava.
    ],
)

fb_java_library(
    name = "mapping-stub",
    srcs = ["MergedSoMapping.java"],
    provided_deps = [
        "//deps:jsr_305",
    ],
)
